package com.iplay.thezen.command;

/**
 * @author dangwu
 * @since 2021/9/11 7:58 下午
 */
public class ConcreteCommand2 extends Command{
    //对哪个Receiver类进行命令处理
    private Receiver receiver;

    public ConcreteCommand2(Receiver receiver){
        this.receiver = receiver;
    }
    @Override
    public void execute() {
        this.receiver.doSomething();
    }
}
